<template>
	<view class="box">
		<view class="top">
			<view class="img">
				<image src="../../static/QuShe-login/QuShe-login.jpeg" mode=""></image>
			</view>
			<view class="name">
				<text>昵称</text>
			</view>
			<view class="infoE" @click="modify">
				<text>编辑个人信息</text>
			</view>
		</view>
		<view class="top" @click="signin">
			点击登录
		</view>
		<view class="cu-list menu" :class="[menuBorder?'sm-border':'',menuCard?'card-menu margin-top':'']">
			<view class="cu-item" :class="menuArrow?'arrow':''">
				<navigator class="content" hover-class="none" url="../member/member" open-type="redirect">
					<text class="cuIcon-discoverfill text-orange"></text>
					<text class="text-grey">会员卡</text>
				</navigator>
			</view>
			<view class="cu-item" :class="menuArrow?'arrow':''">
				<navigator class="content" hover-class="none" url="../list/list" open-type="redirect">
					<text class="cuIcon-discoverfill text-orange"></text>
					<text class="text-grey">我的积分</text>
				</navigator>
			</view>
			<view class="cu-item" :class="menuArrow?'arrow':''">
				<navigator class="content" hover-class="none" url="../appointment/appointment" open-type="redirect">
					<text class="cuIcon-discoverfill text-orange"></text>
					<text class="text-grey">我的预约</text>
				</navigator>
			</view>
			<view class="cu-item" :class="menuArrow?'arrow':''">
				<navigator class="content" hover-class="none" url="../voucher/voucher" open-type="redirect">
					<text class="cuIcon-discoverfill text-orange"></text>
					<text class="text-grey">代金券</text>
				</navigator>
			</view>
			<view class="cu-item" :class="menuArrow?'arrow':''" >
				<navigator class="content" hover-class="none" url="../consumptionRecords/consumptionRecords" open-type="redirect">
					<text class="cuIcon-discoverfill text-orange"></text>
					<text class="text-grey">消费记录</text>
				</navigator>
			</view>
			<view class="cu-item" :class="menuArrow?'arrow':''">
				<navigator class="content" hover-class="none" url="../myShare/myShare" open-type="redirect">
					<text class="cuIcon-discoverfill text-orange"></text>
					<text class="text-grey">我的分享</text>
				</navigator>
			</view>
			<view class="cu-item" :class="menuArrow?'arrow':''">
				<navigator class="content" hover-class="none" url="../list/list" open-type="redirect">
					<text class="cuIcon-discoverfill text-orange"></text>
					<text class="text-grey">关于我们</text>
				</navigator>
			</view>
		</view>
		<!-- 退出登录 -->
		<view class="signout">
			退出登录
		</view>
		<view class="tabbar">
		</view>
		<tabBar :pagePath="'/pagesA/my/my'" :type='type'></tabBar>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				menuArrow: true,
				type: 1,
			}
		},
		methods: {
			//登录
			signin(){
				console.log('登录')
				uni.navigateTo({
					url:"/pages/index/index"
				})
			},
			//修改个人信息
			modify(){
				uni.navigateTo({
					url:"../personInfo/personInfo",
				})
			},
			
			
		}
	}
</script>

<style lang="scss">
	.box {
		width: 750rpx;
		height: 100%;

		.top {
			width: 100%;
			height: 300rpx;
			background-color: #F39E1C;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			color: #FFFFFF;
			.img {
				width: 100rpx;
				height: 100rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.name {
				margin-top: 10rpx;
			}

			.infoE {
				margin-top: 10rpx;
			}
		}

	}
	// 退出登录
	.signout{
		width: 70%;
		height: 80rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50rpx;
		background-color: #f49c1c;
		color: #FFFFFF;
		margin: 30rpx auto;
	}
</style>
